package org.butterfly.springboot.watchdog;

import org.butterfly.watchdog.task.AbstractTask;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

/**
 * function description
 *
 * @author drake
 * @since 2022/3/30
 */
public class SampleTask extends AbstractTask {
    private static final Logger LOGGER = LoggerFactory.getLogger(SampleTask.class);

    @Override
    public boolean isBingo() {
        return true;
    }

    @Override
    public void doSuccess() {
        LOGGER.info("{} Task is success", this.getClass().getSimpleName());
    }

    @Override
    public void doFailure() {
        LOGGER.info("{} Task is fail", this.getClass().getSimpleName());
    }
}
